package com.hc.dao.impl;

import org.springframework.stereotype.Repository;

import com.hc.dao.IAccountDao;
import com.hc.domain.Account;
@Repository
public class AccountDaoImpl extends BaseDaoImpl<Account> implements IAccountDao{

	@Override
	public Account getAccountByTel(String tel) {
		return super.get("FROM Account a WHERE a.tel=?", new Object[]{tel});
		
	}

	@Override
	public void updateOrSaveAccount(Account account) {
		super.saveOrUpdate(account);
	}

}
